// About.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "About.h"
#include "CUI.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAbout property page

IMPLEMENT_DYNCREATE(CAbout, CPropertyPage)

CAbout::CAbout() : CPropertyPage(CAbout::IDD)
{
	//{{AFX_DATA_INIT(CAbout)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CAbout::~CAbout()
{
}

void CAbout::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAbout)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAbout, CPropertyPage)
	//{{AFX_MSG_MAP(CAbout)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAbout message handlers

BOOL CAbout::OnInitDialog() 
{
	CPropertyPage::OnInitDialog();

	//update UI
	CString szMsg;
	CWnd * pBuildDate;
	CWnd * pVerion;
	CWnd*	pCopyright;

	szMsg.LoadString(IDS_BuildDateTitile);
	pBuildDate = GetDlgItem(IDC_BuildDate);
	if (NULL != pBuildDate)
	{
		//pBuildDate->SetWindowText(szMsg+__DATE__+"  "+__TIME__);
		pBuildDate->SetWindowText(szMsg+__DATE__);
	}

	szMsg.LoadString(IDS_Copyright);
	pCopyright = GetDlgItem(IDC_Copyright);
	if (NULL != pCopyright)
	{
		pCopyright->SetWindowText(szMsg);
	}

	pVerion = GetDlgItem(IDC_VersionNum);
	if (NULL != pVerion)
	{
		pVerion->SetWindowText(g_GlobalObj.m_szFileVersion);
	}

	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
